﻿using System;

namespace Report.Api.Models.Tier
{
    /// <summary>
    /// （计划报表）在制工单同步model
    /// </summary>
    public class WorkInProcessSyncModel
    {
        public string Id { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public string OrgId { get; set; }

        /// <summary>
        /// 线体编号
        /// </summary>
        public string LineCode { get; set; }

        public string LineName { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string WorkCode { get; set; }

        /// <summary>
        /// 工单发布日期
        /// </summary>
        public DateTime WorkPublishTime { get; set; }

        /// <summary>
        /// 工单开始时间
        /// </summary>
        public DateTime? WorkStartTime { get; set; }

        /// <summary>
        /// 工单数量
        /// </summary>
        public decimal WorkQty { get; set; }

        /// <summary>
        /// 工单产出数量
        /// </summary>
        public decimal WorkOutputQty { get; set; }

        /// <summary>
        /// 工单差异数据
        /// </summary>
        public decimal WorkOutputDiffQty { get; set; }

        /// <summary>
        /// 工单发料时间
        /// </summary>
        public DateTime? WorkMaterialSendBeginTime { get; set; }

        /// <summary>
        /// 生产订单开始发料时间（SAP生产订单状态变更I0321）
        /// </summary>
        public DateTime? PdtSapGmpsTime { get; set; }

        /// <summary>
        /// 在制天数 生产开始发料-入库完成
        /// </summary>
        public decimal WipDayPdtMaterial { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime Time { get; set; }

        /// <summary>
        /// 工单排产时间
        /// </summary>
        public DateTime? WorkPlanDate { get; set; }

        /// <summary>
        /// 工单入库数量
        /// </summary>
        public decimal WorkWarehourseQty { get; set; }

        /// <summary>
        /// 工单入库差异数
        /// </summary>
        public decimal WorkWarehourseDiffQty { get; set; }

        /// <summary>
        /// 在制天数（工单上线-以第一笔报工时间来计算）
        /// </summary>
        public decimal WipDayBooking { get; set; }

        /// <summary>
        /// 品番
        /// </summary>
        public string CustomerProductCode { get; set; }

        /// <summary>
        /// 首次报工时间
        /// </summary>
        public DateTime? FirstBookingTime { get; set; }
    }
}
